package com.timkj.zgyd.enums;


/**
 * @author : liji
 * @date : 2020-09-01 14:04
 */
public enum  ResultEnums {
    /** 未知错误 */
    UNKNOWN_ERROR(-1, "未知错误"),
    /** 操作成功 */
    SUCCESS(0,"成功"),
    GetOpenId_ERROR(1,"获取openid出错"),
    Order_ERROR(2,"订单错误"),
    NoOrder_ERROR(3,"无订单"),
    endOrder_ERROR(4,"订单已经结束");

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResultEnums(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
